.PHONY:all
all:server_udp client_udp

server_udp:UdpServerMain.cc
	g++ -o $@ $^ -std=c++17
client_udp:UdpClientMain.cc
	g++ -o $@ $^ -std=c++17

.PHONY:clean
clean:
	rm -f server_udp client_udp


# bin=testCond
# cc=g++
# src=$(shell ls *.cc)
# obj=$(src:.cc=.o)

# $(bin):$(obj)
# 	$(cc) -o $@ $^ -lpthread
# %.o:%.cc
# 	$(cc) -c $< -std=c++17

# .PHONY:clean
# clean:
# 	rm -f $(bin) $(obj)